<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
<title>TCard method</title>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</HEAD>

<BODY>
<h1>TCard method</h1>

<h2>Purpose</h2>

<p>Use the <b>TCard</b> method to send a <b>WM_TCARD</b> message from a help window to a program. This method provides the same functionality as the <a href="ocx_tcard.htm">TCard</a> command with the exception that the method accepts only numeric arguments.</p>

<p>Using the <b>TCard</b> method reduces the number of instances of the control in an HTML file. If you plan on using multiple <b>TCard</b> commands in a single HTML file, then you should insert a single <code>&lt;OBJECT&gt;</code> tag, and then call the <b>TCard</b> method.

<p>The instance of the HTML Help ActiveX control that you reference using the <b>TCard</b> method must specify the <b>TCard</b> command.</p>

<p>This command can be used only with a compiled help (.chm) file.</p>

<h2>Applies to</h2>
<p><a href="ocx_mtcard.htm">TCard</a></p>

<h2>Syntax</h2>
<p><code>
TCard(WPARAM <i>wPARAM</i>, LPARAM <i>lPARAM</i>)
</code></p>


<table border=1 cellpadding=0 cellspacing=0 width=100%>
<tr valign=top>
<th>
<b>PARAM name</b>
</th>
<th>
<b>Values</b>
</th>
</tr>

<tr valign=top>
<td>
<i>wPARAM</i>
</td>
<td>
Specifies the value to pass to the <b>WM_TCARD</b> message. <i>wPARAM</i> usually identifies a user action.
<p>This value must be numeric.</p>
</td>
</tr>
<tr valign=top>
<td>
<i>lPARAM</i>
</td>
<td>
Specifies the value to pass to the <b>WM_TCARD</b> message. Contains additional data, depending on the value of <i>wPARAM</i>. 
<p>This value must be numeric.</p>
</td>
</tr>
</table>

<h2>Example</h2>

<p><b>The code for the control:</b>
<pre><code>
&lt;OBJECT
<br>  id=test 
<br>  type="application/x-oleobject" 
<br>  classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
<br>&gt;
<br>  &lt;PARAM name=&quot;Command&quot; value=&quot;TCard&quot;&gt;
<br>  &lt;param name="Button" value="Call TCard command"&gt;
<br>  &lt;param name="Item1" value="123, MyText"&gt;
<br>&lt;/OBJECT&gt;
</pre></code></p>

<p><b>The JavaScript code to invoke the control:</b></p>
<code>
&lt;a href="JavaScript:test.TCard (5555, 10056)"&gt;TCard Example&lt;/a&gt;
</code>

<h2>Comments</h2>
<ul>
<li>The TCard method accepts only numeric arguments. To pass a string argument in lPARAM, use the <a href="ocx_tcard.htm">TCard</a> command.</li>
</ul>

<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ocx_methods.htm"><img src="proced.gif" alt="link to overview topic" border="0"></a>
</td>
<td><a href="ocx_methods.htm">About methods</A>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

</BODY>
</HTML>
